<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$siteTitle}</title>
<link href="__ADMIN__/css/style.css" rel="stylesheet"
	type="text/css" />
<script type="text/javascript" src="__ADMIN__/wx/js/jquery.js"></script>
<script type="text/javascript" src="__ADMIN__/wx/js/ecmall.js"
	charset="utf-8"></script>
<script type="text/javascript" src="__ADMIN__/wx/js/admin.js"
	charset="utf-8"></script>
<script type="text/javascript">
	$(document).ready(function() {
		$(".click").click(function() {
			$(".tip").fadeIn(200);
		});

		$(".tiptop a").click(function() {
			$(".tip").fadeOut(200);
		});

		$(".sure").click(function() {
			$(".tip").fadeOut(100);
		});

		$(".cancel").click(function() {
			$(".tip").fadeOut(100);
		});
	});

	$(function() {
		$('.lock1').click(function() {
			var isLock = confirm("确定设为已使用" + '?');
			if (isLock) {
				return true;
			}
			return false;
		});
	});

	$(function() {
		$('.lock2').click(function() {
			var isLock = confirm("确定设为未使用" + '?');
			if (isLock) {
				return true;
			}
			return false;
		});
	});
	$(function() {
		$('.del').click(function() {
			var isDel = confirm("确定删除" + '?');
			if (isDel) {
				return true;
			}
			return false;
		});
	});

	function cheackSearch() {
		if ($("#searchKey").val() == "") {
			alert("您未输入任何查询条件哦！");
			return false;
		}
	}

	function addService() {
		var url = "{:U('add')}";
		window.location.href = url;
	}
</script>
</head>
<body>
	<div class="place">
		<span>位置：</span>
		<ul class="placeul">
			<li><a href="#">首页</a></li>
			<li><a href="#">增短信模板列表</a></li>
		</ul>
	</div>
	<div class="rightinfo">

		<div class="tools">
			<ul class="toolbar">
				<a href="javascript:void(0);" onclick="addService();"><li
					class="click"><span><img src="__ADMIN__/images/t01.png" /></span>新增短信模板</li></a>
			</ul>
		</div>

		<table class="tablelist">
			<thead>
				<tr>
					<th><input name="" type="checkbox" class="checkall" /></th>
					<th>编号</th>
					<th>增短信模板</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
				<foreach name="list" item="item">
				<tr>
					<td><input name="" type="checkbox" class="checkitem" value="{$item.emp_id}" /></td>
					<td>{$item.id}</td>
					<td>{$item.content}</td>
					<td >
						<a href="{:U('/Admin/MessageTemplate/edit/id/'.$item['id'])}">修改</a>
						<a class="del" href="{:U('/Admin/MessageTemplate/delete/id/'.$item['id'])}">删除</a>
					</td>
				</tr>
				</foreach>
			</tbody>
		</table>
		<div class="pagin">
			{$page}
		</div>
	</div>
	<script type="text/javascript">
		$('.tablelist tbody tr:odd').addClass('odd');
	</script>
</body>
</html>